package bootstrap.liftweb

import net.liftweb.util._
import net.liftweb.http._
import net.liftweb.sitemap._
import net.liftweb.sitemap.Loc._
import Helpers._
 
/**
  * A class that's instantiated early and run.  It allows the application
  * to modify lift's environment
  */
class Boot {
  def boot {
    // where to search snippet
    LiftServlet.addToPackages("net.oaktoncc")     

    // Build SiteMap
    val entries = Menu(Loc("Home", "/", "Home")) ::
    	Menu(Loc("Hello1.1", "/helloStatic", "Hello Static")) :: 
      	Menu(Loc("Hello1.2", "/helloForm", "Hello Form")) :: 
    	Nil 
    LiftServlet.setSiteMap(SiteMap(entries:_*))
  }
}

